function checkPasswordStrength($pass1,$pass2,$strengthResult,$submitButton,blacklistArray){var pass1=$pass1.val();var pass2=$pass2.val();$strengthResult.removeClass('short bad good strong');blacklistArray=blacklistArray.concat(wp.passwordStrength.userInputBlacklist())
var strength=wp.passwordStrength.meter(pass1,blacklistArray,pass2);switch(strength){case 2:$strengthResult.addClass('bad').html(pwsL10n.bad);break;case 3:$strengthResult.addClass('good').html(pwsL10n.good);break;case 4:$strengthResult.addClass('strong').html(pwsL10n.strong);break;case 5:$strengthResult.addClass('short').html(pwsL10n.mismatch);break;default:$strengthResult.addClass('short').html(pwsL10n.short);}
return strength;}
jQuery(document).ready(function($){$('body').on('keyup','input[name=pass1], input[name=pass2]',function(event){checkPasswordStrength($('input[name=pass1]'),$('input[name=pass2]'),$('#pass-strength'),$('input[type=submit]'),['black','listed','word']);});});